import { openApiSpiderTaskPreview } from '@/api/openApi'
export default {
  methods: {
    pagePreview(listQuery) {
      openApiSpiderTaskPreview(listQuery).then((res) => {
        let data = res.data.data[0]
        const routeUrl = this.$router.resolve({
          name: 'collectPreview',
          query: { data },
        })
        window.open(routeUrl.href, '_blank')
      })
    },
  },
}
